* dispnew.c (preserve_other_columns): Remember to multiply the
authorJim Blandy <jimb@redhat.com>
Thu, 20 May 1993 23:30:21 +0000 (23:30 +0000)
committerJim Blandy <jimb@redhat.com>
Thu, 20 May 1993 23:30:21 +0000 (23:30 +0000)
size argument to bcopy by the size of a glyph.

src/dispnew.c

index 30e1706a720910d1a4e16e5401c6fc390adaeb80..fe132f1a0da3a1a420be1b6859ad7f67c96c5b9e 100644 (file)
@@ -747,7 +747,8 @@ preserve_other_columns (w)
              int len;
 
              bcopy (current_frame->glyphs[vpos],
-                    desired_frame->glyphs[vpos], start);
+                    desired_frame->glyphs[vpos],
+                    start * sizeof (current_frame->glyphs[vpos]));
              len = min (start, current_frame->used[vpos]);
              if (desired_frame->used[vpos] < len)
                desired_frame->used[vpos] = len;
@@ -760,7 +761,8 @@ preserve_other_columns (w)
                  = SPACEGLYPH;
              bcopy (current_frame->glyphs[vpos] + end,
                     desired_frame->glyphs[vpos] + end,
-                    current_frame->used[vpos] - end);
+                    ((current_frame->used[vpos] - end)
+                     * sizeof (current_frame->glyphs[vpos])));
              desired_frame->used[vpos] = current_frame->used[vpos];
            }
        }